package com.shenfa.bean.bill.fodder;

/**
 * 素材表字典映射类
 * 
 * @author 龙辰三
 * @date 2011-8-23
 * 
 */
public class FodderManger {

	private String fodderno; // 素材编号
	private String foddername; // 素材名称
	private String foddertype; // 素材类别
	private String fodderdocname; // 文件名
	private String periodbegion; // 账期开始月
	private String periodend; // 账期截止月
	private String fodderstate; // 素材状态
	private String fodderurl; // URL
	private String fodderremark; // 素材说明
	private String fodderpersonno;// 人员编号
	private String createtime; // 创建时间

	public FodderManger() {
		super();
	}

	public FodderManger(String fodderno, String foddername, String foddertype,
			String fodderdocname, String periodbegion, String periodend,
			String fodderstate, String fodderurl, String fodderremark,
			String fodderpersonno, String createtime) {
		super();
		this.fodderno = fodderno;
		this.foddername = foddername;
		this.foddertype = foddertype;
		this.fodderdocname = fodderdocname;
		this.periodbegion = periodbegion;
		this.periodend = periodend;
		this.fodderstate = fodderstate;
		this.fodderurl = fodderurl;
		this.fodderremark = fodderremark;
		this.fodderpersonno = fodderpersonno;
		this.createtime = createtime;
	}

	public String getFodderno() {
		return fodderno;
	}

	public void setFodderno(String fodderno) {
		this.fodderno = fodderno;
	}

	public String getFoddername() {
		return foddername;
	}

	public void setFoddername(String foddername) {
		this.foddername = foddername;
	}

	public String getFoddertype() {
		return foddertype;
	}

	public void setFoddertype(String foddertype) {
		this.foddertype = foddertype;
	}

	public String getFodderdocname() {
		return fodderdocname;
	}

	public void setFodderdocname(String fodderdocname) {
		this.fodderdocname = fodderdocname;
	}

	public String getPeriodbegion() {
		return periodbegion;
	}

	public void setPeriodbegion(String periodbegion) {
		this.periodbegion = periodbegion;
	}

	public String getPeriodend() {
		return periodend;
	}

	public void setPeriodend(String periodend) {
		this.periodend = periodend;
	}

	public String getFodderstate() {
		return fodderstate;
	}

	public void setFodderstate(String fodderstate) {
		this.fodderstate = fodderstate;
	}

	public String getFodderurl() {
		return fodderurl;
	}

	public void setFodderurl(String fodderurl) {
		this.fodderurl = fodderurl;
	}

	public String getFodderremark() {
		return fodderremark;
	}

	public void setFodderremark(String fodderremark) {
		this.fodderremark = fodderremark;
	}

	public String getFodderpersonno() {
		return fodderpersonno;
	}

	public void setFodderpersonno(String fodderpersonno) {
		this.fodderpersonno = fodderpersonno;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((createtime == null) ? 0 : createtime.hashCode());
		result = prime * result
				+ ((fodderdocname == null) ? 0 : fodderdocname.hashCode());
		result = prime * result
				+ ((foddername == null) ? 0 : foddername.hashCode());
		result = prime * result
				+ ((fodderno == null) ? 0 : fodderno.hashCode());
		result = prime * result
				+ ((fodderpersonno == null) ? 0 : fodderpersonno.hashCode());
		result = prime * result
				+ ((fodderremark == null) ? 0 : fodderremark.hashCode());
		result = prime * result
				+ ((fodderstate == null) ? 0 : fodderstate.hashCode());
		result = prime * result
				+ ((foddertype == null) ? 0 : foddertype.hashCode());
		result = prime * result
				+ ((fodderurl == null) ? 0 : fodderurl.hashCode());
		result = prime * result
				+ ((periodbegion == null) ? 0 : periodbegion.hashCode());
		result = prime * result
				+ ((periodend == null) ? 0 : periodend.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FodderManger other = (FodderManger) obj;
		if (createtime == null) {
			if (other.createtime != null)
				return false;
		} else if (!createtime.equals(other.createtime))
			return false;
		if (fodderdocname == null) {
			if (other.fodderdocname != null)
				return false;
		} else if (!fodderdocname.equals(other.fodderdocname))
			return false;
		if (foddername == null) {
			if (other.foddername != null)
				return false;
		} else if (!foddername.equals(other.foddername))
			return false;
		if (fodderno == null) {
			if (other.fodderno != null)
				return false;
		} else if (!fodderno.equals(other.fodderno))
			return false;
		if (fodderpersonno == null) {
			if (other.fodderpersonno != null)
				return false;
		} else if (!fodderpersonno.equals(other.fodderpersonno))
			return false;
		if (fodderremark == null) {
			if (other.fodderremark != null)
				return false;
		} else if (!fodderremark.equals(other.fodderremark))
			return false;
		if (fodderstate == null) {
			if (other.fodderstate != null)
				return false;
		} else if (!fodderstate.equals(other.fodderstate))
			return false;
		if (foddertype == null) {
			if (other.foddertype != null)
				return false;
		} else if (!foddertype.equals(other.foddertype))
			return false;
		if (fodderurl == null) {
			if (other.fodderurl != null)
				return false;
		} else if (!fodderurl.equals(other.fodderurl))
			return false;
		if (periodbegion == null) {
			if (other.periodbegion != null)
				return false;
		} else if (!periodbegion.equals(other.periodbegion))
			return false;
		if (periodend == null) {
			if (other.periodend != null)
				return false;
		} else if (!periodend.equals(other.periodend))
			return false;
		return true;
	}

}
